<!DOCTYPE html>
<html>

  <head>
    <meta charset='utf-8'>
    <meta http-equiv="X-UA-Compatible" content="chrome=1">
    <meta name="description" content="Facetype.js : typeface.js generator ">

    <link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">

    <title>Facetype.js</title>
  </head>

  <body>

    <!-- HEADER -->
    <div id="header_wrap" class="outer">
        <header class="inner">
          <!-- <a id="forkme_banner" href="https://github.com/gero3/facetype.js">View on GitHub</a> -->

          <h1 id="project_title">Facetype.js</h1>
          <h2 id="project_tagline">typeface.js 生成器 </h2>
        </header>
    </div>

    <!-- MAIN CONTENT -->
    <div id="main_content_wrap" class="outer">
      <section id="main_content" class="inner">
          <h3> TypeFace.js 转换</h3>

          <div>ttf格式字体文件转换为typeface.js格式的字体文件</div>
          
          <div class="inputRow">
            <input id="fileInput" type="file" multiple/>
          </div>
          <div class="inputRow">
            <div class="col">
              <input id="filetypeJson" type="radio" name="filetype" value="json" checked/>
              <label for="filetypeJson">
                生成一个JSON文件(.json)
                <p class="deemphasized">这将只导出字体数据并且不包含facetype.js声明的script脚本</p>
              </label>
            </div>
            <div class="col">
              <input id="filetypeJs" type="radio" name="filetype" value="js"/>
              <label for="filetypeJs">
                生成一个JavasScript文件 (.js)
                <p class="deemphasized">这将导出一个包含facetype.js执行脚本的js文件,这是为了与就项目兼容</p>
              </label>
            </div>
          </div>
          <div class="inputRow">
            <input id="reverseTypeface" type="checkbox"/>
            <label for="reverseTypeface">
              反转字体方向.
              <p class="deemphasized">使用此选项可修复“d”、“o”和“8”等字符中的漏洞问题.</p>
            </label>
          </div>
          <div class="inputRow">
            <input id="restrictCharacters" type="checkbox"/>
            <label for="restrictCharacters">
              限制字符集.
              <p class="deemphasized">这将仅导出指定的字符（例如“abcd”）或字符范围（例如“1-256”）。</p>
              <p><input id="restrictCharacterSet" class="largeInput"/></p>
            </label>
          </div>
          <div>
          <input id="convert" type="submit" title= "convert" value="转换" />
          <!--<input id="view" type="submit" title= "view" value="View" />-->
          </div>

      </section>
    </div>

    <!-- FOOTER  -->
    <!-- <div id="footer_wrap" class="outer">
      <footer class="inner">
        <p class="copyright">Facetype.js maintained by <a href="https://github.com/gero3">gero3</a></p>
        <p>Published with <a href="https://pages.github.com">GitHub Pages</a></p>
      </footer>
    </div> -->

    <script src ="javascripts/opentype.min.js" ></script>
    <script src ="javascripts/main.js" ></script>
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    
      ga('create', 'UA-62800551-1', 'auto');
      ga('send', 'pageview');
    
    </script>
  </body>
</html>
